<?php
session_start();
if(!isset($_REQUEST['cmd']))
{
	session_unset();	
}

$cmd = $_REQUEST['cmd'];
?>
<!DOCTYPE html>
<html>
<head>
<title>Úkol 7</title>
<meta charset="utf-8">
<style>
    body 
    {
        background: #0D48A7;
        font-family: Georgia, Times, serif;
        color: white;
    } 
    #body
    {
        background: #4079D3;
        min-width: 500px;
        width: 70%;
        position: relative;
        margin: 0px auto;
        text-align: center;
    }
    #header
    {
        background: #042D6D;
    }
    #footer
    {
        background: #042D6D;
    }
    table 
    {
        
        margin: 10px auto;
    }
    #menu a
    {
        color: white;
        margin-left: 2em
    } 
</style>
</head>
<body>
    <div id="body">
        <div id="header">
            <h1>BMI TESTER</h1>    
        </div>
        <div id ="menu">
            <?php require 'menu.php'; ?>
        </div>
        <div id="content">
            <?php
		if($cmd == 1)
		{
		    include 'sign_in.php';
		}
		else if ($cmd == 2)
		{
			include 'bmi_app.php';	
		}
		else if ($cmd == 3)
		{
			include 'bmi_search.php';		
		}
		else if ($cmd == 4)
		{
			include 'detail.php';		
		}            	
            	else
            	{
            		include 'login.php';
            		
            	}
            	
                
            ?>
        </div>
        <div id="footer">
            <p>&not;&copy;&sup2; Petr Panoška</p>
        </div>
    </div>
</body>
</html>